﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.坚山
{
    public partial class Form坚山产成品交付 : DevExpress.XtraEditors.XtraForm
    {
        public Form坚山产成品交付()
        {
            InitializeComponent();
            //String xx = DateTime.Now.ToString();
            //try { xx = xx.Replace(" ", "").Replace("/", "").Replace(":", ""); } catch { }
            List<KashiyamaOrderDetailDTO> kashiyamaOrderDetailDTOs坚山订单明细 = new List<KashiyamaOrderDetailDTO>();
            kashiyamaOrderDetailDTOs坚山订单明细.Add(new KashiyamaOrderDetailDTO("4781077", "4781077", "2021-11-04", "KA-20211105-000001", "Bill Medi", "HD 正装小圆摆长袖", "JMC24-1", "42", "1"));
            kashiyamaOrderDetailDTOs坚山订单明细.Add(new KashiyamaOrderDetailDTO("4781085", "4781085", "2021-11-04", "KA-20211105-000002", "Jeff Bedard", "HD 正装小圆摆长袖", "JM-10-1", "42", "1"));
            kashiyamaOrderDetailDTOs坚山订单明细.Add(new KashiyamaOrderDetailDTO("4781090", "4781090", "2021-11-04", "KA-20211105-000003", "Ryan Te", "HD 正装小圆摆长袖", "JM-10-1", "43", "1"));
            kashiyamaOrderDetailDTOs坚山订单明细.Add(new KashiyamaOrderDetailDTO("4781068", "4781068", "2021-11-04", "KA-20211105-000004", "Elliot Koz", "HD 正装小圆摆长袖", "JMC24-1", "39", "1"));
            kashiyamaOrderDetailDTOs坚山订单明细.Add(new KashiyamaOrderDetailDTO("4781074", "4781074", "2021-11-04", "KA-20211105-000005", "Jay Dunlap", "HD 正装小圆摆长袖", "JM-29-2", "45", "1"));
            kashiyamaOrderDetailDTOs坚山订单明细.Add(new KashiyamaOrderDetailDTO("4781058", "4781058", "2021-11-04", "KA-20211105-000006", "Zubin Hu", "HD 正装小圆摆长袖", "JM-29-2", "42", "1"));
            kashiyamaOrderDetailDTOs坚山订单明细.Add(new KashiyamaOrderDetailDTO("4781032", "4781032", "2021-11-04", "KA-20211105-000007", "Fion Chan", "HD 正装小圆摆长袖", "JMC24-1", "39", "1"));
            kashiyamaOrderDetailDTOs坚山订单明细.Add(new KashiyamaOrderDetailDTO("4781020", "4781020", "2021-11-04", "KA-20211105-000008", "Kiki Ten", "HD 正装小圆摆长袖", "JM-29-2", "45", "1"));
            List<KashiyamaOrderDTO> kashiyamaOrderDTOs = new List<KashiyamaOrderDTO>();
            kashiyamaOrderDTOs.Add(new KashiyamaOrderDTO("2021-11-05", "2021-11-13", "8", "冯金月", "20211105-164417.xml", "美国", "美国坚山", "姜程程 17880889011 辽宁省大连市开发区铁山西路9-5号", kashiyamaOrderDetailDTOs坚山订单明细));
            this.gridControl坚山成果物.DataSource = kashiyamaOrderDTOs;
            //this.advBandedGridView1.BestFitColumns();
        }
    }
    public class KashiyamaOrderDTO
    {
        public String orderDate { get; set; }
        public String expressDate { get; set; }
        public String orderNumber { get; set; }
        public String workerName { get; set; }
        public String url { get; set; }
        public String orderCountry { get; set; }
        public String orderShop { get; set; }
        public String expressAddress { get; set; }
        public List<KashiyamaOrderDetailDTO> kashiyamaOrderDetailDTOs { get; set; } = new List<KashiyamaOrderDetailDTO>();
        public KashiyamaOrderDTO()
        {

        }
        public KashiyamaOrderDTO(string orderDate, string expressDate, string orderNumber, string workerName, string url, string orderCountry, string orderShop, string expressAddress, List<KashiyamaOrderDetailDTO> kashiyamaOrderDetailDTOs)
        {
            this.orderDate = orderDate;
            this.expressDate = expressDate;
            this.orderNumber = orderNumber;
            this.workerName = workerName;
            this.url = url;
            this.orderCountry = orderCountry;
            this.orderShop = orderShop;
            this.expressAddress = expressAddress;
            this.kashiyamaOrderDetailDTOs = kashiyamaOrderDetailDTOs;
        }
    }
    public class KashiyamaOrderDetailDTO
    {
        public String kashiyamaOya { get; set; }
        public String kashiyamaOyaNo { get; set; }
        public String orderDate { get; set; }
        public String orderNo { get; set; }
        public String customerName { get; set; }
        public String styleNameCn { get; set; }
        public String materialCode { get; set; }
        public String size { get; set; }
        public String orderNumber { get; set; }
        public KashiyamaOrderDetailDTO()
        {

        }

        public KashiyamaOrderDetailDTO(string kashiyamaOya, string kashiyamaOyaNo, string orderDate, string orderNo, string customerName, string styleNameCn, string materialCode, string size, string orderNumber)
        {
            this.kashiyamaOya = kashiyamaOya;
            this.kashiyamaOyaNo = kashiyamaOyaNo;
            this.orderDate = orderDate;
            this.orderNo = orderNo;
            this.customerName = customerName;
            this.styleNameCn = styleNameCn;
            this.materialCode = materialCode;
            this.size = size;
            this.orderNumber = orderNumber;
        }
    }
}
